package com.neuedu.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.neuedu.common.annotation.Excel;
import com.neuedu.common.core.domain.BaseEntity;

/**
 * 农作物种植面积对象 crop_planting_areas
 *
 * @author ruoyi
 * @date 2024-12-17
 */
public class CropPlantingAreas extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long id;

    /** 关联的报告ID */
    @Excel(name = "关联的报告ID")
    private Long reportId;

    /** 农作物名称 */
    @Excel(name = "农作物名称")
    private String cropName;

    /** 种植面积（亩） */
    @Excel(name = "种植面积", readConverterExp = "亩=")
    private BigDecimal area;

    /** 产量预测（公斤） */
    @Excel(name = "产量预测", readConverterExp = "公=斤")
    private BigDecimal yieldPrediction;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setReportId(Long reportId)
    {
        this.reportId = reportId;
    }

    public Long getReportId()
    {
        return reportId;
    }
    public void setCropName(String cropName)
    {
        this.cropName = cropName;
    }

    public String getCropName()
    {
        return cropName;
    }
    public void setArea(BigDecimal area)
    {
        this.area = area;
    }

    public BigDecimal getArea()
    {
        return area;
    }
    public void setYieldPrediction(BigDecimal yieldPrediction)
    {
        this.yieldPrediction = yieldPrediction;
    }

    public BigDecimal getYieldPrediction()
    {
        return yieldPrediction;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("reportId", getReportId())
            .append("cropName", getCropName())
            .append("area", getArea())
            .append("yieldPrediction", getYieldPrediction())
            .toString();
    }
}
